import { defineStore } from "pinia"
import { getCityData } from "@/services"
const useCityStore = defineStore('city', {
  state() {
    return {
      cityAllData: {},
      currentCity: {
        cityName: '广州'
      }
    }
  },
  actions: {
    async getCityDataAction() {
      const res = await getCityData()
      this.cityAllData = res.data
      console.log(res.data)
    }
  },
  getters: {}
})
export default useCityStore